import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加志愿者服务小时
export function addVolunteer(data) {
  return request({
    url: baseUrl + "/pc/volunteer",
    method: "post",
    data
  });
}

//查询志愿者服务小时
export function getVolunteer(data) {
  return request({
    url: baseUrl + "/pc/volunteer",
    method: "get",
    params: data
  });
}

//删除志愿者服务小时
export function deleteVolunteer(data) {
  return request({
    url: baseUrl + "/pc/volunteer",
    method: "delete",
    data
  });
}

//更新志愿者服务小时
export function updateVolunteer(data) {
  return request({
    url: baseUrl + "/pc/volunteer",
    method: "put",
    data
  });
}

//导入志愿者服务小时
export function importVolunteer(data) {
  return request({
    url: baseUrl + "/pc/volunteer",
    method: "post",
    data
  });
}
